package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.model.DataEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 供应商授权配送实体对象
 */
@TableName("supplier_distribution")
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@Accessors(chain = true)
public class SupplierDistribution extends DataEntity implements Serializable {

    /** 供应商id */
    private String supplierId;

    /** 供应商名称 */
    @Length(max = 100, message = "供应商名称长度必须介于 0 和 100 之间")
    private String supplierName;

    /** 授权供应商id */
    private String authorizeId;

    /** 授权供应商名称 */
    @Length(max = 100, message = "授权供应商名称长度必须介于 0 和 100 之间")
    private String authorizeName;

    /** 医院id */
    private String hospitalId;

    /** 医院名称 */
    @Length(max = 50, message = "医院名称长度必须介于 0 和 50 之间")
    private String hospitalName;

}

